package com.cxg.allsys.adminsys.controller;

import com.cxg.allsys.adminsys.pojo.Member;
import com.cxg.allsys.adminsys.service.IMemberService;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/Common")
@Slf4j
@RestController
@Data
public class MemberController {

    @Autowired
    private IMemberService memberService;

    @RequestMapping("/RegisterTMember")
    @ApiOperation(value = "测试方法",notes = "测试方法")
    public String registerTMember(Member member){
        log.info("Membercontroller控制器运行save方法");
        boolean flag= memberService.save(member);
        if (flag) {
            return "succ";
        } else {
            return "fail";
        }
    }


    public boolean CheckLoginMember(){

        return true;
    }







}
